package com.ruicar.afs.cloud.risk.tortoise.dto.response.apply;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruicar.afs.cloud.risk.tortoise.anno.RefData;
import com.ruicar.afs.cloud.risk.tortoise.dto.response.GwtRefData;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/07/27 18:36
 */
@Data
@Builder
@AllArgsConstructor
@ApiModel("合同信息 - cacontract")
public class GwtContract extends GwtRefData implements Serializable {

    /**
     * Ticket unit name
     */
    @JsonInclude
    @JSONField(name = "invoicecompany")
    @JsonProperty("invoicecompany")
    private String ticketUnitName;

    /**
     * Vin
     */
    @JsonInclude
    @JSONField(name = "vin")
    @JsonProperty("vin")
    private String vin;

    /**
     * Engine no
     */
    @JsonInclude
    @JSONField(name = "engineno")
    @JsonProperty("engineno")
    private String engineNo;

    /**
     * Contact status
     */
    @JsonInclude
    @RefData(useFieldName = true) // 合同状态
    @JSONField(name = "internalstatus")
    @JsonProperty("internalstatus")
    private String contactStatus;

    @JsonIgnore
    @JSONField(serialize = false)
    private String contactStatusName;
}
